package com.example.ruralservicedigitalplatform.mapper;

import com.example.ruralservicedigitalplatform.domain.po.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface ItemMapper {
    List<Item> list(Long id);
    @Select("select * from item where item_id=#{itemId}")
    Item getById(Long itemId);
}
